package week2;

import org.junit.Test;

public class Book {
    private String name;

    public void setName(String name) {
        this.name = name;
    }

    public Book getBook(){
        return this;
    }
    @Test
    public void getName(){
        int id = 0;
        setName("Java");
        String str = id + this.name;
        System.out.println(str);
    }

    @Test
    public void doString(){
        int id = 0;
        for(int i = 0; i < 10; i++){
            System.out.println(name + String.valueOf(i));
        }
        for(int i = 0; i < 3; i++){
            System.out.println(i);
           id = 7;
            System.out.println(id);
        }
    }


}
